Skip to content

Sub:add aux func disarm/estop to pre-arm check for disarm function #29979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

Hwurzburg
Copy link
Contributor

@Hwurzburg Hwurzburg commented May 5, 2025

for RC only operation without joystick buttons or just gcs aux function commands

@Hwurzburg Hwurzburg requested a review from Williangalvani May 5, 2025 13:27
@Hwurzburg Hwurzburg changed the title Sub:add aux func disarm to pre-arm check for disarm function Sub:add aux func disarm/estop to pre-arm check for disarm function May 5, 2025
@Hwurzburg Hwurzburg added the Sub label May 5, 2025
Copy link
Contributor

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with it, but as I'm not quite familiar with the rest of the code, let's leave it for the devcall

@Hwurzburg Hwurzburg force-pushed the mode_disarm_check branch from 1412cb3 to 3ef25c0 Compare May 6, 2025 12:11
@Hwurzburg Hwurzburg force-pushed the mode_disarm_check branch from 3ef25c0 to 03a266a Compare May 6, 2025 12:14
@Hwurzburg Hwurzburg requested review from peterbarker and rmackay9 May 7, 2025 12:57
@Hwurzburg
Copy link
Contributor Author

@peterbarker @rmackay9 please approve so @Williangalvani can merge...thanks

@@ -48,7 +55,7 @@ bool AP_Arming_Sub::pre_arm_checks(bool display_failure)
}
// don't allow arming unless there is a disarm button configured
if (!has_disarm_function()) {
check_failed(display_failure, "Must assign a disarm or arm_toggle button");
check_failed(display_failure, "Must assign a disarm or arm_toggle button or disarm aux function");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"must have disarm method"?

@@ -48,7 +55,7 @@ bool AP_Arming_Sub::pre_arm_checks(bool display_failure)
}
// don't allow arming unless there is a disarm button configured
if (!has_disarm_function()) {
check_failed(display_failure, "Must assign a disarm or arm_toggle button");
check_failed(display_failure, "Must assign a disarm or arm_toggle button or disarm aux function");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could make this shorter, something like, "set RCx_OPTION = yy (Disarm)"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is not the correct message.....it could be "Needs a disarm switch or button setup"...I will make another PR if you are really fussed...

@tridge tridge merged commit 9bfc95b into ArduPilot:master May 13, 2025
65 checks passed
@Hwurzburg Hwurzburg deleted the mode_disarm_check branch May 13, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants